package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.RechargeItem;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.query.RechargeItemQueryObject;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface RechargeItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(RechargeItem record);

    RechargeItem selectByPrimaryKey(Long id);

    List<RechargeItem> selectAll();
    List<RechargeItem> queryForList(RechargeItemQueryObject qo);

    int updateByPrimaryKey(RechargeItem record);

    int selectCount(RechargeItemQueryObject qo);

    BigDecimal getTotalExpense();

    Integer getTotalCount();

    List<Map<String,Object>> getTOP();
}